package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

import java.util.List;

/**
 * @author feng js
 */
public interface WmNewsService extends IService<WmNews> {
    ResponseResult findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult submitNews(WmNewsDto wmNewsDto,Short isSubmit);

    ResponseResult findById(Integer id);

    ResponseResult delNewsById(Integer id);
    ResponseResult downOrUp(WmNewsDto wmNewsDto);

    List<Integer> findRelease();
    /**
     * 查询文章列表（显示作者名字）
     * @param dto
     * @return
     */
    ResponseResult findList(NewsAuthDto dto);

    ResponseResult findOneNew(Integer id);

    ResponseResult updateStatus(NewsAuthDto dto,Short status);
}
